<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            max-width: 300px;
            min-width: 100px;
            max-height: 300px;
            min-height: 100px;
        }
        .overflow{
            overflow: auto; /*内容溢出有滚动条 不溢出没有滚动条*/
        }

    </style>
</head>

<body>
    <div class="overflow">
        啊啊啊啊啊啊啊啊啊啊阿啊啊啊啊啊阿啊啊啊啊啊啊啊啊啊啊啊啊啊啊阿啊啊啊啊啊阿啊啊啊啊
    </div>

</body>

</html>